package com.tansun.easycare.rule.rulelog.entity;

import org.hibernate.validator.constraints.Length;

import com.tansun.easycare.rule.common.entity.RuleBaseEntity;

/**
 * rule_log_detailEntity 该类为RuleLogs中字段logContent的解析
 * @author lph
 * @version 2018-07-23
 */
public class RuleLogDetails extends RuleBaseEntity<RuleLogDetails> {
	
	private static final long serialVersionUID = 1L;
	private String relationId;		// 关联id 指 RuleLogs 的id
	private String projectCode;		// 项目编码
	private String ruleType;		// 规则类型 指 ruleManage 的modelType
	private String modelName;		// 模型名称
	private String ruleName;		// 规则名称 指drl中的规则名称
	private String code;			// 模型code
	private String version;			// 模型版本
	private String salience;		// 规则优先级 指drl中的salience
	private String ruleCondition;	// 规则条件 指drl中的每一条规则的Map条件
	private String paramNameen;		// 参数变量英文名称
	private String paramNamecn;		// 参数变量中文名称
	private String coefficient;		// 系数，针对评分模型
	private String scoreval;		// 分值，针对评分模型
	private String description;		// 描述
	private String field1;			// field0 存储决策流名称 一般为code+version
	private String field2;			// field01
	private String count;			// 统计计数
	private String logType;			// 日志类型
	public String getCount() {
		return count;
	}

	public void setCount(String count) {
		this.count = count;
	}

	public RuleLogDetails() {
		super();
	}

	public RuleLogDetails(String id){
		super(id);
	}

	@Length(min=0, max=50, message="relation_id长度必须介于 0 和 50 之间")
	public String getRelationId() {
		return relationId;
	}

	public void setRelationId(String relationId) {
		this.relationId = relationId;
	}
	
	@Length(min=0, max=50, message="project_code长度必须介于 0 和 50 之间")
	public String getProjectCode() {
		return projectCode;
	}

	public void setProjectCode(String projectCode) {
		this.projectCode = projectCode;
	}
	
	@Length(min=0, max=50, message="rule_type长度必须介于 0 和 50 之间")
	public String getRuleType() {
		return ruleType;
	}

	public void setRuleType(String ruleType) {
		this.ruleType = ruleType;
	}
	

	
	public String getModelName() {
		return modelName;
	}

	public void setModelName(String modelName) {
		this.modelName = modelName;
	}

	public String getRuleName() {
		return ruleName;
	}

	public void setRuleName(String ruleName) {
		this.ruleName = ruleName;
	}

	@Length(min=0, max=32, message="code长度必须介于 0 和 32 之间")
	public String getCode() {
		return code;
	}

	public void setCode(String code) {
		this.code = code;
	}
	
	@Length(min=0, max=16, message="version长度必须介于 0 和 16 之间")
	public String getVersion() {
		return version;
	}

	public void setVersion(String version) {
		this.version = version;
	}
	
	@Length(min=0, max=10, message="salience长度必须介于 0 和 10 之间")
	public String getSalience() {
		return salience;
	}

	public void setSalience(String salience) {
		this.salience = salience;
	}
	
	@Length(min=0, max=1000, message="rule_condition长度必须介于 0 和 1000 之间")
	public String getRuleCondition() {
		return ruleCondition;
	}

	public void setRuleCondition(String ruleCondition) {
		this.ruleCondition = ruleCondition;
	}
	
	@Length(min=0, max=32, message="param_nameen长度必须介于 0 和 32 之间")
	public String getParamNameen() {
		return paramNameen;
	}

	public void setParamNameen(String paramNameen) {
		this.paramNameen = paramNameen;
	}
	
	@Length(min=0, max=32, message="param_namecn长度必须介于 0 和 32 之间")
	public String getParamNamecn() {
		return paramNamecn;
	}

	public void setParamNamecn(String paramNamecn) {
		this.paramNamecn = paramNamecn;
	}
	
	@Length(min=0, max=32, message="coefficient长度必须介于 0 和 32 之间")
	public String getCoefficient() {
		return coefficient;
	}

	public void setCoefficient(String coefficient) {
		this.coefficient = coefficient;
	}
	
	@Length(min=0, max=32, message="scoreval长度必须介于 0 和 32 之间")
	public String getScoreval() {
		return scoreval;
	}

	public void setScoreval(String scoreval) {
		this.scoreval = scoreval;
	}

	public String getDescription() {
		return description;
	}

	public void setDescription(String description) {
		this.description = description;
	}

	public String getField1() {
		return field1;
	}

	public void setField1(String field1) {
		this.field1 = field1;
	}

	public String getField2() {
		return field2;
	}

	public void setField2(String field2) {
		this.field2 = field2;
	}

	public String getLogType() {
		return logType;
	}

	public void setLogType(String logType) {
		this.logType = logType;
	}
}